luci-base: add odhcpd feature detection
authorDavid Härdeman <[email protected]>
Fri, 10 Oct 2025 12:54:11 +0000 (14:54 +0200)
committerPaul Donald <[email protected]>
Fri, 10 Oct 2025 17:04:07 +0000 (19:04 +0200)
commit90f10d6980b8773d51501f1a37880394d4398c3c
tree9b9b71c0dd4f06df1654cd29843416d02e92fd77
parente6dc9ac18ce2bfe6794c67f608e556d875e1e98f
luci-base: add odhcpd feature detection

For dnsmasq, feature detection is currently supported like this:

L.hasSystemFeature('dnsmasq', 'dhcpv6')

while for odhcpd, only a basic check is supported:

L.hasSystemFeature('odhcpd')

With this patch, a similar feature check is also possible for odhcpd,
e.g.:

L.hasSystemFeature('odhcpd', 'dhcpv6')

Signed-off-by: David Härdeman <[email protected]>
modules/luci-base/root/usr/share/rpcd/ucode/luci